package com.muli.muwai.demo;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component("aa")
public class aa {
    //@Scheduled(cron = "0/2 * * * * ? ")
    public void bb() {
        try {
            System.out.println("aa执行时间：" + new Date());

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    //@Scheduled(cron = "0/2 * * * * ? ")
    public void aa() {
        try {
            System.out.println("bb执行时间：" + new Date());

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
